package com.yanqu.road.entity.activity.qqprivilege;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_qq_privilege")
public class QQPrivilegeUserData extends DataObject {
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, select = true, update = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true, select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "用户每日登陆领奖时间")
    private long dayLoginRewardTime;

    @FieldTypeAnnotation(desc = "用户已领取对应的新注册奖励")
    private int gotRegisterReward;

    @FieldTypeAnnotation(desc = "用户已激活阶段性成就奖励")
    private int gotProgressReward;

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public long getDayLoginRewardTime() {
        return dayLoginRewardTime;
    }
    public void setDayLoginRewardTime(long dayLoginRewardTime) {
        if (this.dayLoginRewardTime != dayLoginRewardTime) {
            this.dayLoginRewardTime = dayLoginRewardTime;
            setOp(DataStatus.Update);
        }
    }

    public int getGotRegisterReward() {
        return gotRegisterReward;
    }
    public void setGotRegisterReward(int gotRegisterReward) {
        if (this.gotRegisterReward != gotRegisterReward) {
            this.gotRegisterReward = gotRegisterReward;
            setOp(DataStatus.Update);
        }
    }

    public int getGotProgressReward() {
        return gotProgressReward;
    }
    public void setGotProgressReward(int gotProgressReward) {
        if (this.gotProgressReward != gotProgressReward) {
            this.gotProgressReward = gotProgressReward;
            setOp(DataStatus.Update);
        }
    }
}
